package com.galaxy.service.dto.system.user;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import lombok.Data;

/**
 * 重置密码dto
 * @author caijinbang
 * @date 2018/10/27 18:13
 */
@Data
public class ResetPasswordDto {

    @NotBlank(message = "用户标识ID不能为空")
    private String userId;

    @NotBlank(message = "新密码不能为空")
    @Pattern(regexp = "^(\\w){6,18}$",message = "密码应为[A-Za-z0-9_]组成的6-18位字符！")
    private String password;

}
